﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Smalt.Data.Infrastructure
{
    public class FakeRepository<T> : IRepository<T> where T: class
    {
        private IList<T> entities = new List<T>();
        public IQueryable<T> All()
        {
            return entities.AsQueryable();
        }

        public T GetById(int id)
        {
            // TODO: Implement this method
            throw new NotImplementedException();
        }

        public void Add(T entity)
        {
            // TODO: Implement this method
            throw new NotImplementedException();
        }

        public void Update(T entity)
        {
            // TODO: Implement this method
            throw new NotImplementedException();
        }

        public void Delete(T entity)
        {
            // TODO: Implement this method
            throw new NotImplementedException();
        }

        public void Delete(int id)
        {
            // TODO: Implement this method
            throw new NotImplementedException();
        }

        public void Detach(T entity)
        {
            // TODO: Implement this method
            throw new NotImplementedException();
        }
    }
}
